package com.itheima.service.system;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.system.User;

import java.util.List;

public interface UserService {
    PageInfo findAll(String companyId, int page, int size);

    //查询所有
    List<User> findAll(String companyId);

    //保存
    void save(User user);

    //更新
    void update(User user);

    //删除
    void delete(String id);

    //根据 id 查询
    User findById(String id);

    void changeRole(String userid, String[] roleIds);

    User findUserByEmail(String email);
}
